package com.winsomely.leecode;

/**
 * 构造矩形
 * 
 * @author liujiawei
 *
 */
public class ConstructRectangle {

	public int[] constructRectangle(int area) {
		int w = (int) Math.sqrt(area);
		while ((area % w) != 0)
			w--;
		int[] result = { area / w, w };
		return result;
	}

	public static void main(String[] args) {
		// ConstructRectangle t = new ConstructRectangle();
		// int[] r = t.constructRectangle(4);
		// for (int i = 0; i < r.length; i++) {
		// System.out.println(r[i]);
		// }

		for (int i = 0; i <= 99999; i++) {
			System.out.println(System.currentTimeMillis());
		}
	}

}
